define(['app'], function(app) {
	'use strict';

	//实例化方法
	var factory = function(Http) {

		//返回信息
		return {
			// 账户密码登录操作
			get_login: function(param, callback, error, done) {

				param = param || {}
				param.method = 'member.login';

				//post请求
				Http.post(param, callback, error, done);
			},
			// 微信登录操作
			get_wechat: function(param, callback, error, done) {

				param = param || {}
				param.method = 'member.thirdpartlogin';

				//post请求
				Http.post(param, callback, error, done);
			},
			// qq登录操作
			get_qq: function(param, callback, error, done) {

				param = param || {}
				param.method = 'member.thirdpartlogin';

				//post请求
				Http.post(param, callback, error, done);
			},
			//发送手机验证码
			get_CellphoneCode: function(param, callback, error, done) {

				param = param || {}
				param.method = 'member.getCellphoneCodeNew';

				//post请求
				Http.post(param, callback, error, done);
			},
			//第三方绑定
			thirdpart_bindlogin: function(param, callback, error, done) {

				param = param || {}
				param.method = 'member.thirdpartbindlogin';

				//post请求
				Http.post(param, callback, error, done);
			},
			//注册用户
			signup: function(param, callback, error, done) {

				param = param || {}
				param.method = 'member.signup';

				//post请求
				Http.post(param, callback, error, done);
			},
		};
	}

	factory.$inject = ['Http'];
	return app.registerService("T_login", factory);
});